﻿using System.Data.Entity.Migrations;
using Zinnia.Lite.Configs;
using Zinnia.Lite.Context;
using Zinnia.Lite.Core.Imp;
using Zinnia.Lite.Untilty;

namespace Zinnia.Lite.Migrations
{
    internal sealed class Configuration : DbMigrationsConfiguration<ZinniaEfBaseContext>
    {
        DbMigrationsConfig _dbMigrationsConfig => LiteConfigService.Instance.DbMigrationsConfig;
        public Configuration()
        {
            AutomaticMigrationsEnabled = _dbMigrationsConfig.AutomaticMigrationsEnabled;
            AutomaticMigrationDataLossAllowed = _dbMigrationsConfig.AutomaticMigrationDataLossAllowed;
        }
        protected override void Seed(ZinniaEfBaseContext context)
        {

        }
    }
}
